]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnail: set correct cursor when hovering the drop placeholder
authorStefano Facchini <stefano.facchini@gmail.com>
Thu, 22 Mar 2012 17:48:50 +0000 (18:48 +0100)
committerStefano Facchini <stefano.facchini@gmail.com>
Fri, 30 Mar 2012 15:44:39 +0000 (17:44 +0200)
Namely, use the the 'copy' cursor for app launchers and the 'move'
cursor for windows.

https://bugzilla.gnome.org/show_bug.cgi?id=672641

js/ui/workspaceThumbnail.js

index 05e239c70ded078c8ca40940fdc91bb4e8ce5da6..4708a88d091ea9da7a09b83b146d9022715d39cd 100644 (file)
@@ -667,7 +667,7 @@ const ThumbnailsBox = new Lang.Class({
         if (this._dropWorkspace != -1)
             return this._thumbnails[this._dropWorkspace].handleDragOverInternal(source, time);
         else if (this._dropPlaceholderPos != -1)
-            return DND.DragMotionResult.MOVE_DROP;
+            return source.realWindow ? DND.DragMotionResult.MOVE_DROP : DND.DragMotionResult.COPY_DROP;
         else
             return DND.DragMotionResult.CONTINUE;
     },